package hottargui.config;

import hottargui.framework.PlayerColor;
import hottargui.framework.TurnSequenceStrategy;

public class AlphaTurnSequenceStrategy implements TurnSequenceStrategy {

	PlayerColor currentPlayerColor;
	public AlphaTurnSequenceStrategy()
	{
		currentPlayerColor = PlayerColor.None;
	}
	
	
	@Override
	public PlayerColor getNextPlayerColor() {
		PlayerColor retval;
		switch( currentPlayerColor){
		case None:
			retval = PlayerColor.Red;
			break;
		case Red:
			retval = PlayerColor.Green;
			break;
		case Green:
			retval = PlayerColor.Blue;
			break;
		case Blue:
			retval = PlayerColor.Yellow;
			break;
		case Yellow:
			retval = PlayerColor.None;
			break;
		default:
			retval = PlayerColor.None;
			break;
			
		}	
		currentPlayerColor = retval;
		return retval;		
	}

}
